package com.designpatterns.factory;

public class SimpleProductorFactory implements ISimpleProductorFactory {

    @Override
    public <T extends IProductor> T getInstance(Class<T> t) {
        try {
            return t.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        return null;
    }
}
